package com.backend.demo1.mapper;


import com.backend.demo1.models.Match.Comment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface MatchCommentMapper {

    // 插入评论
    void insertComment(Comment comment);

    // 查询所有评论
    List<Comment> findCommentsByMatchId(@Param("matchId") Long matchId);



    // 更新评论
    void updateComment(Comment comment);

    // 根据ID删除评论
    void deleteCommentById(@Param("commentId") String commentId);

}